Class GirvanNewman

All Implemented Interfaces:
Processable<Graph,Graph>

public class GirvanNewman extends ClusteringAlgorithm
Girvan-Newman Algorithm for Community Detection. Based on python's igraph library and JUNG's graph library.
Author:
Cesar Martin
See Also:
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • process

      public ArrayList<Graph> process(Graph graph)
      Performs Edge Betweenness community detection with Girvan-Newman algorithm a given Graph, returning the clustering with the maximum modularity.
      Parameters:
      graph - the Graph to perform FastGreedy on
      Returns:
      the list of Graphs representing the clustering with the maximum modularity
    • getComponents

      private Set<Set<Node>> getComponents(List<Node> nList)
      Extracts the weak components from a graph.
      Parameters:
      nList - the list of Nodes of the Graph
      Returns:
      the list of weak components